package 高级;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Scanner;

//4：输出今年的星期天都是几号
public class Zuoye04225 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入哪年");
        int year = scan.nextInt();
        Calendar a = Calendar.getInstance();
        a.set(year, 0, 1);
        SimpleDateFormat b = new SimpleDateFormat("yyyy-MM-dd E");
        int count = 52;
        while (count >0) {
            if (a.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {
                count--;
                String c = b.format(a.getTime());
                System.out.println(c);
            }
            a.set(Calendar.DATE, a.get(Calendar.DATE) + 1);
        }

    }
}
